package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    //根据菜品id来查询套餐id

    //SELECT setmeal_id FROM setmeal_dish WHERE dish_id IN (?, ?, ?)
    List<Long> getSetmealIdsByDishIds(List<Long> dishIds);

    void insertBatch(List<SetmealDish> setmealDishes);

    void deleteBySetmealId(Long setmealId);

    List<SetmealDish> getBySetmealId(Long id);
}

